package su.jet.irc.server.service;

import java.util.Set;

import su.jet.common.irc.domain.User;

public class AuthService {
	
	public static boolean getAuthResult(Set<User> regUsers, User user) {
		for (User regUser : regUsers){
			if (regUser.equals(user) && regUser.verifyPassword(user.getPassword()))
				return true;
		}
		return false;
	}
}
